package com.flx.noodle.websocket.dao;

import com.flx.noodle.websocket.entity.SSOUser;
import com.flx.noodle.websocket.searcher.UserSearcher;

import java.util.List;

/**
 * Created by fenglixiong on 2017/10/2.
 */
public interface UserDao {

    SSOUser getUserById(int id);

    SSOUser getUserByName(String userName);


    int insertUser(SSOUser ssoUser);

    int updateUser(SSOUser ssoUser);

    int deleteUser(int id);

    List<SSOUser> findUserList(UserSearcher searcher);

    SSOUser getUserBySessionId(String sessionId);

    int updateUserSessionId(int userId,String sessionId);

}
